package com.dps.metrics.factory;


import com.dps.metrics.type.Timer;
import com.dps.metrics.type.Counter;
import com.dps.metrics.type.Gauge;

import java.util.Map;

public class NoopMetricsFactory implements MetricsFactory {
    public NoopMetricsFactory() {
    }

    public Counter createCounter(String name, Map<String, String> tags, String help) {
        return (mount) -> {
        };
    }

    public Timer createTimer(String name, Map<String, String> tags, String help) {
        return (nanoSeconds) -> {
        };
    }

    public Gauge createGauge(String name, Map<String, String> tags, String help) {
        return new Gauge() {
            public void incConc() {
            }

            public void decConc() {
            }

            public void add(long mount) {
            }

            public void subtract(long mount) {
            }

            public void set(long newValue) {
            }
        };
    }
}


